package com.cy.common;


public enum ResponseEnum {
    SUCCESS("200","操作成功"),
    FAIL("500","操作失败"),
    NOTFOUND("300","无相关信息"),

    EXIST("301","该信息已存在"),

    ERROR("302","参数错误"),

    PWDERROR("303","密码错误");

    private String code;
    private String msg;

    ResponseEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "ResponseEnum{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
